<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
	<th:block th:include="include/include :: header('用户列表')" />
	<th:block th:include="include/include :: layout-latest-css" />
	<th:block th:include="include/include :: ztree-css" />
</head>
<body class="gray-bg">
	<div class="ui-layout-west">
		<div class="box box-main">
			<div class="box-header">
				<div class="box-title">
					<i class="fa icon-grid"></i> 组织机构
				</div>
				<div class="box-tools pull-right">
					<button type="button" class="btn btn-box-tool" id="btnExpand" title="展开" style="display:none;"><i class="fa fa-chevron-up"></i></button>
					<button type="button" class="btn btn-box-tool" id="btnCollapse" title="折叠"><i class="fa fa-chevron-down"></i></button>
					<button type="button" class="btn btn-box-tool" id="btnRefresh" title="刷新部门"><i class="fa fa-refresh"></i></button>
				</div>
			</div>
			<div class="ui-layout-content">
				<div id="tree" class="ztree"></div>
			</div>
		</div>
	</div>
	
	<div class="ui-layout-center">
		<div class="container-div">
			<div class="row">
				<div class="col-sm-12 search-collapse">
					<form id="user-form">
						<input type="hidden" id="deptId" name="deptId">
						<div class="select-list">
							<ul>
								<li>
									登录名称：<input type="text" name="loginname"/>
								</li>
								<li>
									手机号码：<input type="text" name="phone"/>
								</li>
								<li>
									用户状态：<select name="lockFlag">
										<option value="">所有</option>
										<option value="0">有效</option>
										<option value="9">锁定</option>
									</select>
								</li>
								<li>
									<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								    <a class="btn btn-warning btn-rounded btn-sm" onclick="reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
								</li>
							</ul>
						</div>
					</form>
				</div>
				
		        <div class="btn-group-sm" id="toolbar" role="group">
		        	<a class="btn btn-success" onclick="$.operate.addTab()" sec:authorize="hasAuthority('sys_user_add')">
		                <i class="fa fa-plus"></i> 新增
		            </a>
		            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" sec:authorize="hasAuthority('sys_user_del')">
		                <i class="fa fa-remove"></i> 删除
		            </a>
		            <!-- <a class="btn btn-info" onclick="$.table.importExcel()" sec:authorize="hasAuthority('sys_user_add')">
			            <i class="fa fa-upload"></i> 导入
			        </a> -->
		            <a class="btn btn-warning" onclick="$.table.exportMyExcel()">
			            <i class="fa fa-download"></i> 导出
			        </a>
		        </div>
		        
		        <div class="col-sm-12 select-table table-striped">
				    <table id="bootstrap-table"></table>
				</div>
			</div>
		</div>
	</div>
	
	<th:block th:include="include/include :: footer" />
	<th:block th:include="include/include :: layout-latest-js" />
	<th:block th:include="include/include :: ztree-js" />
	<script th:inline="javascript">
		/*<![CDATA[*/
			var editFlag = [[${@permission.hasPermi('sys_user_edit')}]];
			var deleteFlag = [[${@permission.hasPermi('sys_user_del')}]];
		/*]]>*/
	</script>
	<script th:src="@{/pages/sysadm/user/userList.js}"></script>
</body>
<!-- 导入区域 -->
<script id="importTpl" type="text/template">
<form enctype="multipart/form-data" class="mt20 mb10" id="import-form">
	<div class="col-xs-offset-1">
		<input type="file" id="file" name="file"/>
		<input type="checkbox" id="submitType" name="updateSupport" hidden>
		<div class="mt10 pt5">
			<input type="checkbox" id="updateSupport" name="updateSupport" title="如果登录账户已经存在，更新这条数据。"> 是否更新已经存在的用户数据
			 &nbsp;	<a onclick="$.table.importTemplate()" class="btn btn-default btn-xs"><i class="fa fa-file-excel-o"></i> 下载模板</a>
		</div>
		<font color="red" class="pull-left mt10">
			提示：仅允许导入“xls”或“xlsx”格式文件！
		</font>
	</div>
</form>
</script>
</html>